import { request } from '@/api/_service'

// 查询umsRoleMenuRelation列表
export function LIST (data) {
  return request({
    url: '/umsRoleMenuRelation/list',
    method: 'get',
    params: data
  })
}

// 分页查询umsRoleMenuRelation列表
export function PAGE (data) {
  return request({
    url: '/umsRoleMenuRelation/page',
    method: 'get',
    params: data
  })
}

// 查询umsRoleMenuRelation
export function GET (data) {
  return request({
    url: '/umsRoleMenuRelation/' + data,
    method: 'get'
  })
}

// 新增umsRoleMenuRelation
export function ADD (data) {
  return request({
    url: '/umsRoleMenuRelation',
    method: 'post',
    data: data
  })
}

// 修改umsRoleMenuRelation
export function UPDATE (data) {
  return request({
    url: '/umsRoleMenuRelation',
    method: 'put',
    data: data
  })
}

// 删除umsRoleMenuRelation
export function DELETE (data) {
  return request({
    url: '/umsRoleMenuRelation/delete/' + data,
    method: 'delete'
  })
}

export default {
  LIST,
  PAGE,
  GET,
  ADD,
  UPDATE,
  DELETE
}
